﻿using IntelligentStorWpfApp.Model;
using System.Data;

namespace IntelligentStorWpfApp.Interface
{
    public interface LinkProductPositionInterface
    {
        //link draft
        bool addLinkDraft(LinkProductPosition linkpp);
        bool deleteLinkDraft(int Id);
        DataTable getAllLinksDraft();
        bool updateLinkDraft(LinkProductPosition linkpp);
        DataTable GetDraftLinkByPositionId(int pId);
        bool deleteLinkDraftByPosition(int pId);
        DataTable GetDraftLinkByProductId(string productId);

        //link
        bool deleteLinkByProduct(string productId);
        bool deleteLinkByPosition(int pId);
        LinkProductPosition getLinkByProductId(string productId);
        bool linkProductPosition(string productId, int positionId);
        DataTable GetLinkByPositionId(int pId);
    }
}
